package com.kt.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 物料编码对象 t_material
 * 
 * @author lzc
 * @date 2021-01-16
 */
public class Material extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String mId;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String mName;

    /** 物料类型A 成品 B 半成品 C原材料 */
    @Excel(name = "物料类型A 成品 B 半成品 C原材料")
    private String mType;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private String mUnit;

    /** 物料图片 */
    @Excel(name = "物料图片")
    private String mImg;

    /** 物料族 */
    @Excel(name = "物料族")
    private String mRace;

    /** 物料描述 */
    @Excel(name = "物料描述")
    private String mDes;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setmId(String mId) 
    {
        this.mId = mId;
    }

    public String getmId() 
    {
        return mId;
    }
    public void setmName(String mName) 
    {
        this.mName = mName;
    }

    public String getmName() 
    {
        return mName;
    }
    public void setmType(String mType) 
    {
        this.mType = mType;
    }

    public String getmType() 
    {
        return mType;
    }
    public void setmUnit(String mUnit) 
    {
        this.mUnit = mUnit;
    }

    public String getmUnit() 
    {
        return mUnit;
    }
    public void setmImg(String mImg) 
    {
        this.mImg = mImg;
    }

    public String getmImg() 
    {
        return mImg;
    }
    public void setmRace(String mRace) 
    {
        this.mRace = mRace;
    }

    public String getmRace() 
    {
        return mRace;
    }
    public void setmDes(String mDes) 
    {
        this.mDes = mDes;
    }

    public String getmDes() 
    {
        return mDes;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mId", getmId())
            .append("mName", getmName())
            .append("mType", getmType())
            .append("mUnit", getmUnit())
            .append("mImg", getmImg())
            .append("mRace", getmRace())
            .append("mDes", getmDes())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
